package org.wk.core.db.tool;

import org.wk.core.db.domain.IUser;

/**
 * 
 * @ClassName	: WebUtils
 * @Package		：org.wk.core.db.tool
 * @Author df.w 
 * @Create Time	：2018年5月2日 上午9:53:56
 * @Description	:
 */
public class WebUtils {
	private static ThreadLocal<IUser> threadLocal = new ThreadLocal<IUser>();

	public static IUser getUser() {
		return threadLocal.get();
	}

	public static void setUser(IUser user) {
		threadLocal.set(user);
	}
	public static void clear(){
		threadLocal.remove();
	}
	
}
